package org.example;

import org.example.config.springConfig;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class ssm_application {
    public static void main(String[] args) {
        // 创建Spring应用上下文
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
        context.register(springConfig.class);
        context.refresh();

        System.out.println("Spring SSM Application started successfully!");

        // 应用运行完毕后关闭上下文
        context.close();
    }
}
